package ai.people.netmon.telegram.service;

import ai.people.netmon.framework.domain.telegram.entity.AnalysisDataUser;
import ai.people.netmon.framework.domain.telegram.vo.account.AnalyzedAccount;
import ai.people.netmon.framework.domain.telegram.vo.account.ChannelsMember;
import ai.people.netmon.framework.domain.telegram.vo.account.SimilarAccount;
import ai.people.netmon.framework.domain.telegram.vo.channels.ChatMessage;
import ai.people.netmon.framework.model.response.PageResponse;
import ai.people.netmon.telegram.domain.request.AnalyzedListRequest;
import ai.people.netmon.telegram.domain.request.account.ChannelsMemberRequest;
import ai.people.netmon.telegram.domain.request.account.SimilarAccountRequest;
import ai.people.netmon.telegram.domain.request.account.SpeakMessageRequest;

import java.util.List;
import java.util.Set;

/**
 * 账户分析服务
 *
 * @author yuanqinglong
 * @date 2022/1/12 18:22
 */
public interface AccountAnalysisService {


    /**
     * 群组列表
     *
     * @param channelsMemberRequest 群组成员请求参数
     * @return {@link PageResponse}<{@link ChannelsMember}>
     */
    PageResponse<ChannelsMember> channelsList(ChannelsMemberRequest channelsMemberRequest);


    /**
     * 发言消息
     *
     * @param speakMessageRequest 发言消息请求参数
     * @return {@link PageResponse}<{@link ChatMessage}>
     */
    PageResponse<ChatMessage> speakMessageList(SpeakMessageRequest speakMessageRequest);


    /**
     * 类似账号
     *
     * @param similarAccountRequest 同类账号参数
     * @return {@link List}<{@link SimilarAccount}>
     */
    List<SimilarAccount> similarAccount(SimilarAccountRequest similarAccountRequest);


    /**
     * 已加账户分析菜单
     *
     * @param analyzedListRequest 参数
     * @return {@link List}<{@link AnalyzedAccount}>
     */
    List<AnalyzedAccount> analyzedAccount(AnalyzedListRequest analyzedListRequest);


    /**
     * 已加入分析账户id集合
     *
     * @param analyzedListRequest 请求参数
     * @return {@link Set}<{@link String}>
     */
    Set<String> analyzedAccountIdSet(AnalyzedListRequest analyzedListRequest);


    /**
     * 加入分析
     *
     * @param analysisDataUser 分析数据用户
     * @return int
     */
    int joinAnalysis(AnalysisDataUser analysisDataUser);

}
